package net.qiqb.core.executing;

import lombok.Getter;
import net.qiqb.core.executing.definition.CommandDefine;

/**
 * 包装类
 */
public class CommandWrapper {

    @Getter
    private Object commandObj;

    @Getter
    private final CommandDefine commandDefine;

    public CommandWrapper(CommandDefine commandDefine) {
        this.commandDefine = commandDefine;
    }

    public CommandWrapper(CommandDefine commandDefine, Object commandObj) {
        this.commandDefine = commandDefine;
        this.commandObj = commandObj;
    }

    public void setCommandObj(Object commandObj) {
        this.commandObj = commandObj;
    }
}
